<template>
  <div>
    <van-image :src="img" />
  </div>
</template>
<script setup lang="ts">
import { useRoute } from "vue-router";
import { getShare } from "@/utils/api";
import { ref } from "vue";
const route = useRoute();
const img = ref("");
const getData = async () => {
  const res = await getShare({ id: route.query.id });
  img.value = res.msg;
};
getData();
</script>
